/**
 * Generate time : 2012-01-05 14:04:05
 * Version : 1.0.1.V20070717
 */
package com.baosight.sczx.zm.ce.domain;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;

/**
 * ZMCEFaultPhenomenon table comment : 设备故障现象
 */
public class ZMCEFaultPhenomenon extends DaoEPBase {

	private String fdKeyId = " "; /* FD_KEY_ID */
	private String fdCode = " "; /* 现象编号 */
	private String fdDescription = " "; /* 现象描述 */
	private String fdStandredequipmentId = " "; /* 标准设备ID */
	private String fdToencode = " "; /* 标准设备内码 */
	private String fdFilterForm = " "; /* 过滤形式 */
	private String fdRemarks = " "; /* 备注 */

	private String fdEquipmentName = " "; /* 名称 */
	private String fdEquipmentSpecifications = " "; /* 规格 */
	private String fdEquipmentModel = " "; /* 型号 */

	/**
	 * initialize the metadata
	 */
	public void initMetaData() {
		EiColumn eiColumn;

		eiColumn = new EiColumn("fdKeyId");
		eiColumn.setPrimaryKey(true);
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("FD_KEY_ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdCode");
		eiColumn.setFieldLength(20);
		eiColumn.setDescName("现象编号");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdDescription");
		eiColumn.setFieldLength(250);
		eiColumn.setDescName("现象描述");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdStandredequipmentId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("标准设备ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdToencode");
		eiColumn.setFieldLength(20);
		eiColumn.setDescName("标准设备内码");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdFilterForm");
		eiColumn.setFieldLength(10);
		eiColumn.setDescName("过滤形式");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdRemarks");
		eiColumn.setFieldLength(250);
		eiColumn.setDescName("备注");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdEquipmentName");
		eiColumn.setFieldLength(50);
		eiColumn.setDescName("名称");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdEquipmentSpecifications");
		eiColumn.setFieldLength(30);
		eiColumn.setDescName("规格");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdEquipmentModel");
		eiColumn.setFieldLength(30);
		eiColumn.setDescName("型号");
		eiMetadata.addMeta(eiColumn);

	}

	/**
	 * the constructor
	 */
	public ZMCEFaultPhenomenon() {
		initMetaData();
	}

	/**
	 * get the fdKeyId - FD_KEY_ID
	 * 
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}

	/**
	 * set the fdKeyId - FD_KEY_ID
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}

	/**
	 * get the fdCode - 现象编号
	 * 
	 * @return the fdCode
	 */
	public String getFdCode() {
		return this.fdCode;
	}

	/**
	 * set the fdCode - 现象编号
	 */
	public void setFdCode(String fdCode) {
		this.fdCode = fdCode;
	}

	/**
	 * get the fdDescription - 现象描述
	 * 
	 * @return the fdDescription
	 */
	public String getFdDescription() {
		return this.fdDescription;
	}

	/**
	 * set the fdDescription - 现象描述
	 */
	public void setFdDescription(String fdDescription) {
		this.fdDescription = fdDescription;
	}

	/**
	 * get the fdStandredequipmentId - 标准设备ID
	 * 
	 * @return the fdStandredequipmentId
	 */
	public String getFdStandredequipmentId() {
		return this.fdStandredequipmentId;
	}

	/**
	 * set the fdStandredequipmentId - 标准设备ID
	 */
	public void setFdStandredequipmentId(String fdStandredequipmentId) {
		this.fdStandredequipmentId = fdStandredequipmentId;
	}

	/**
	 * get the fdToencode - 标准设备内码
	 * 
	 * @return the fdToencode
	 */
	public String getFdToencode() {
		return this.fdToencode;
	}

	/**
	 * set the fdToencode - 标准设备内码
	 */
	public void setFdToencode(String fdToencode) {
		this.fdToencode = fdToencode;
	}

	/**
	 * get the fdFilterForm - 过滤形式
	 * 
	 * @return the fdFilterForm
	 */
	public String getFdFilterForm() {
		return this.fdFilterForm;
	}

	/**
	 * set the fdFilterForm - 过滤形式
	 */
	public void setFdFilterForm(String fdFilterForm) {
		this.fdFilterForm = fdFilterForm;
	}

	/**
	 * get the fdRemarks - 备注
	 * 
	 * @return the fdRemarks
	 */
	public String getFdRemarks() {
		return this.fdRemarks;
	}

	/**
	 * set the fdRemarks - 备注
	 */
	public void setFdRemarks(String fdRemarks) {
		this.fdRemarks = fdRemarks;
	}

	/**
	 * @return the fdEquipmentName
	 */
	public String getFdEquipmentName() {
		return fdEquipmentName;
	}

	/**
	 * @param fdEquipmentName
	 *            the fdEquipmentName to set
	 */
	public void setFdEquipmentName(String fdEquipmentName) {
		this.fdEquipmentName = fdEquipmentName;
	}

	/**
	 * @return the fdEquipmentSpecifications
	 */
	public String getFdEquipmentSpecifications() {
		return fdEquipmentSpecifications;
	}

	/**
	 * @param fdEquipmentSpecifications
	 *            the fdEquipmentSpecifications to set
	 */
	public void setFdEquipmentSpecifications(String fdEquipmentSpecifications) {
		this.fdEquipmentSpecifications = fdEquipmentSpecifications;
	}

	/**
	 * @return the fdEquipmentModel
	 */
	public String getFdEquipmentModel() {
		return fdEquipmentModel;
	}

	/**
	 * @param fdEquipmentModel
	 *            the fdEquipmentModel to set
	 */
	public void setFdEquipmentModel(String fdEquipmentModel) {
		this.fdEquipmentModel = fdEquipmentModel;
	}

	/**
	 * get the value from Map
	 */
	@SuppressWarnings("rawtypes")
	public void fromMap(Map map) {

		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCode")), fdCode));
		setFdDescription(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDescription")), fdDescription));
		setFdStandredequipmentId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdStandredequipmentId")), fdStandredequipmentId));
		setFdToencode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdToencode")), fdToencode));
		setFdFilterForm(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdFilterForm")), fdFilterForm));
		setFdRemarks(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRemarks")), fdRemarks));

		setFdEquipmentName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdEquipmentName")), fdEquipmentName));
		setFdEquipmentSpecifications(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdEquipmentSpecifications")), fdEquipmentSpecifications));
		setFdEquipmentModel(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdEquipmentModel")), fdEquipmentModel));
	}

	/**
	 * set the value to Map
	 */
	@SuppressWarnings({ "rawtypes", "unchecked" })
	public Map toMap() {

		Map map = new HashMap();
		map.put("fdKeyId", StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));
		map.put("fdCode", StringUtils.toString(fdCode, eiMetadata.getMeta("fdCode")));
		map.put("fdDescription", StringUtils.toString(fdDescription, eiMetadata.getMeta("fdDescription")));
		map.put("fdStandredequipmentId", StringUtils.toString(fdStandredequipmentId, eiMetadata.getMeta("fdStandredequipmentId")));
		map.put("fdToencode", StringUtils.toString(fdToencode, eiMetadata.getMeta("fdToencode")));
		map.put("fdFilterForm", StringUtils.toString(fdFilterForm, eiMetadata.getMeta("fdFilterForm")));
		map.put("fdRemarks", StringUtils.toString(fdRemarks, eiMetadata.getMeta("fdRemarks")));

		map.put("fdEquipmentName", StringUtils.toString(fdEquipmentName, eiMetadata.getMeta("fdEquipmentName")));
		map.put("fdEquipmentSpecifications", StringUtils.toString(fdEquipmentSpecifications, eiMetadata.getMeta("fdEquipmentSpecifications")));
		map.put("fdEquipmentModel", StringUtils.toString(fdEquipmentModel, eiMetadata.getMeta("fdEquipmentModel")));

		return map;

	}
}